1 using UnityEngine;
2 using
System.Collections;
3
4 public
abstract class Action {
5
6     
protected Actor actor;
7
8     
public abstract bool Act(float delta);
9
10     
public Actor getActor()
11     {
12         
return actor;
13     }
14
15     
public virtual void setActor(Actor actor)
16     {
17         
this.actor = actor;
18     }
19
20     
public virtual void restart()
21     {
22     }
23 }



Trò chơi đua xe động vật trong UNITY Engine 114.701 lượt xem

Gõ tìm kiếm nhanh...